package com.openresty.bbs.config;


import com.baomidou.mybatisplus.extension.service.IService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.openresty.dao.service.IRedisService;
import com.openresty.dao.service.ITopicService;
import com.openresty.dao.service.impl.RedisServiceImpl;
import com.openresty.dao.service.impl.TopicServiceImpl;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
@MapperScan({"com.openresty.dao.mapper"})
public class AppConfig {

    @Bean
    public IRedisService redisService() {
        return new RedisServiceImpl(); // Replace with your actual implementation
    }

    @Bean
    public ITopicService topicService() {
        return new TopicServiceImpl(); // Replace with your actual implementation
    }

}